@extends('admin.common.base-master')

@section('html-head')
    <link href="{{url('css/admin/pagenum.css')}}" rel="stylesheet" />
@endsection

@section('html-body')
    <!-- content start -->
    <div id="content">
        <!-- cur-position start -->
        <div id="cur-position">
            <span class="tit">当前位置：</span>
            <a href="#">用户管理</a>
        </div>
        <!-- cur-position end -->

        <!--filter-box start-->
        <div class="filter-box clearfix">
            <div class="fl">
                <span class="search-bd">
                {{--<form id="form_promoter">--}}
                    <input type="text" class="search-ipt" name="pro_name" placeholder="用户昵称" value="" id="nickname">
                    <input class="search-smt" type="button">
                    {{--</form>--}}
            </span>
            </div>
        </div>
        <!--filter-box end-->

        <div class="table-box">
            <table class="table">
                <thead>
                <tr>
                    <th>ID</th>
                    <th>头像</th>
                    <th>昵称</th>
                    <th>用户名</th>
                    <th>真实姓名</th>
                    <th>星座</th>
                    <th>地区</th>
                    <th>qq</th>
                    <th>微信号</th>
                    <th>创建时间</th>
                    <th>账户状态</th>
                </tr>
                </thead>
                <tbody id="fansinfo">
                @if(count($users) > 0)
                    @foreach($users as $user)
                        <tr>
                            <td>{{$user->id}}</td>
                            <td class="account-td" style="width: 20px;">
                        <span class="photo">
                            <img src="{{route("Api.File.showImageById",["id"=>$user->userInfo->photo_id])}}" alt="">
                        </span>
                            </td>
                            <td>
                                <div class="info-box">
                                    <p>
                                        <span class="icon icon-rzh"></span>
                                        <span class="name">@if($user->userInfo){{$user->userInfo->nickname}}@endif</span>
                                        <img class="sex" src="{{url('/images/admin/girl.gif')}}" alt="" style="">
                                    </p>
                                </div>
                            </td>
                            <td>{{$user->phone}}</td>
                            <td>@if($user->userInfo){{$user->userInfo->realname}}@endif</td>
                            <td>@if($user->userInfo){{$user->userInfo->constellation}}@endif</td>
                            <td>@if($user->userInfo){{$user->userInfo->province}}{{$user->userInfo->city}}{{$user->userInfo->area}}@endif</td>
                            <td>@if($user->userInfo){{$user->userInfo->qq}}@endif</td>
                            <td>@if($user->userInfo){{$user->userInfo->wechat}}@endif</td>
                            <td>{{$user->created_at}}</td>
                            <td>@if((int)$user->status == 0)<span class="color3">锁定</span> @elseif((int)$user->status == 1)<span class="color4">正常</span>@endif</td>
                            {{--<td><a class="btnLump btnLump1" href="">删除｜锁定</a></td>--}}
                        </tr>
                    @endforeach
                @endif
                </tbody>
            </table>
            <?php echo $users->render(); ?>
        </div>
    </div>
    <!-- content end -->

@endsection